package chao.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo(name="chaoPlugin" ,defaultPhase= LifecyclePhase.PACKAGE)
public class MyPlugin extends AbstractMojo {
    @Parameter(property = "project.basedir")
    private String filePath;



    public void execute() throws MojoExecutionException, MojoFailureException {
        System.out.print(filePath+"mybasedir-----------");
    }
}
